/*
 * @Author: liuying 247220246@qq.com
 * @Date: 2025-02-08 14:59:21
 * @LastEditors: liuying 247220246@qq.com
 * @LastEditTime: 2025-02-14 10:03:38
 * @FilePath: \my-book-react\src\bases\tabs\tab.tsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from 'react';
export interface TabProps {
  /** 标签页内容 */
  children?: React.ReactNode;
  /** 标签页标题 */
  title?: string;
  /** 标签页唯一标识 */
  key: string;
}
const Tab: React.FC<TabProps> = (props) => {
  return props.children ? (props.children as React.ReactElement) : null;
};
Tab.displayName = 'Tab';
export default Tab;
